package com.fxu.framework.biz.ano;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 打印或隐藏SQL日志[默认隐藏]
 * @author fangxu
 * @since 2025-05-30
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SqlLogger {
    /**
     * 是否隐藏
     * @return 是否隐藏
     */
    boolean hide() default true;
    /**
     * 打印SQL的Mapper类
     * @return 打印SQL的Mapper类
     */
    Class<? extends BaseMapper<?>>[] mappers() default {};
}
